import { request } from '../request';

/** get list */
export function chatInfoList(params: Api.SystemManage.ChatInfoSearchParams) {
  return request<Api.SystemManage.ChatInfoList>({
    url: '/chatInfo/list',
    method: 'post',
    data: params
  });
}

/** save */
export function chatInfoSave(params?: Api.SystemManage.ChatInfoSaveParams) {
  return request<boolean>({
    url: '/chatInfo/add',
    method: 'post',
    data: params
  });
}

/** update */
export function chatInfoUpdate(params?: Api.SystemManage.ChatInfoUpdateParams) {
  return request<boolean>({
    url: '/chatInfo/update',
    method: 'post',
    data: params
  });
}

/** get */
export function chatInfoGet(params: { id: string }) {
  return request<Api.SystemManage.ChatInfo>({
    url: '/chatInfo/get',
    method: 'post',
    data: params
  });
}

/** del */
export function chatInfoDel(params: { id: string }) {
  return request<boolean>({
    url: '/chatInfo/del',
    method: 'post',
    data: params
  });
}

/** delBatch */
export function chatInfoDelBatch(params: { ids: Array<string> }) {
  return request<boolean>({
    url: '/chatInfo/delBatch',
    method: 'post',
    data: params
  });
}
